// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.network;

import java.io.File;
import java.io.FileInputStream;
import java.util.zip.CRC32;

public class MD5Checksum {
    public static long createChecksum(String filename) throws Exception {
        File file = new File(filename);
        if (!file.exists()) {
            return 0L;
        } else {
            FileInputStream fileInputStream = new FileInputStream(filename);
            CRC32 cRC32 = new CRC32();
            byte[] _byte = new byte[1024];

            int _int;
            while ((_int = fileInputStream.read(_byte)) != -1) {
                cRC32.update(_byte, 0, _int);
            }

            long _long = cRC32.getValue();
            fileInputStream.close();
            return _long;
        }
    }

    public static void main(String[] var0) {
    }
}
